All Databases
Inside Mac - Index
FontInfo
FontInfo
structure
#include <
Quickdraw.h
>
typedef struct {
Size Offset Description
short
ascent; 2 0 Height above base line
short
descent; 2 2 Depth below base line
short
widMax; 2 4 Width of widest character in the font
short
leading; 2 8 Distance between lines
}
FontInfo
; 10
Notes: The
FontInfo
structure is used in calls to
GetFontInfo
.
When calculating where to start drawing the next line of a series, call
GetFontInfo
and add ascent + descent + leading. Add the sum to the
current vertical coordinate.
The word "leading" is pronounced like "bedding" and derives from the ancient
method of setting type in blocks of lead (Pb).
Referenced by (20):
A User Item in a Dialog
Types.h
WidthTabHandle
yellowColor
January 94 - Printing in MacApp 3.0.1 (Frameworks Archive)
A User Item in a Dialog (Inside Mac - Index)
WidthTabHandle (Inside Mac - Index)
yellowColor (Inside Mac - Index)
GetFontInfo (Inside Mac - Basic Toolbox)
StdTxMeas (Inside Mac - Basic Toolbox)
Printer Resource 2 (MacTech Vol 03-1987)
Quadratic Plotters (code) (MacTech Vol 05-1989)
Quadratic Plotters 2 (MacTech Vol 05-1989)
HeapLister(code) (MacTech Vol 06-1990)
Track, Field 2 (MacTech Vol 06-1990)
Hello TCL World (MacTech Vol 08-1992)
May 94 Challenge (MacTech Vol 10-1994)
Selective Color (MacTech Vol 10-1994)
May 97 develop QA (MacTech Vol 13-1997)
Apr 99 Tips (MacTech Vol 15-1999)